package com.dianping.cat.consumer.state.model.entity;

import com.dianping.cat.consumer.state.model.BaseEntity;
import com.dianping.cat.consumer.state.model.IVisitor;







public class Detail
  extends BaseEntity<Detail>
{
  private Long m_id;
  private long m_total;
  private double m_size;
  private long m_totalLoss;
  
  public Detail() {}
  
/* 22 */   public Detail(Long id) { this.m_id = id; }




/* 27 */   public void accept(IVisitor visitor) { visitor.visitDetail(this); }


  
  public boolean equals(Object obj) {
/* 32 */     if (obj instanceof Detail) {
/* 33 */       Detail _o = (Detail)obj;

/* 35 */       if (!equals(getId(), _o.getId())) {
/* 36 */         return false;
      }
      
/* 39 */       return true;
    }
    
/* 42 */     return false;
  }

  
/* 46 */   public Long getId() { return this.m_id; }



/* 50 */   public double getSize() { return this.m_size; }



/* 54 */   public long getTotal() { return this.m_total; }



/* 58 */   public long getTotalLoss() { return this.m_totalLoss; }


  
  public void mergeAttributes(Detail other) {
/* 72 */     assertAttributeEquals(other, "detail", "id", this.m_id, other.getId());

/* 74 */     this.m_total = other.getTotal();

/* 76 */     this.m_size = other.getSize();

/* 78 */     this.m_totalLoss = other.getTotalLoss();
  }
  
  public Detail setId(Long id) {
/* 82 */     this.m_id = id;
/* 83 */     return this;
  }
  
  public Detail setSize(double size) {
/* 87 */     this.m_size = size;
/* 88 */     return this;
  }
  
  public Detail setTotal(long total) {
/* 92 */     this.m_total = total;
/* 93 */     return this;
  }
  
  public Detail setTotalLoss(long totalLoss) {
/* 97 */     this.m_totalLoss = totalLoss;
/* 98 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/state/model/entity/Detail.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */